<template>
  <div class="right">
    右侧组件<br />
    <button @click="sendPost">发送POST请求</button>
  </div>
</template>

<script>
export default {
  name: 'Right',
  methods: {
    async sendPost() {
      const { data: res } = await this.$http.post('/save', { name: '张三', desc: '法外狂徒' })
      console.log(res)
    },
  },
}
</script>

<style scoped>
.right {
  background-color: orange;
  min-height: 250px;
  flex: 1;
}
</style>
